import { ref, reactive, onMounted } from 'vue'

// 
export default function useMenu () {

  // 生成搜索表单的数据
  const formData = ref([
    {
      label: '菜单名称',
      type: 'input',
      placeholder: '请输入菜单名称',
      prop: 'menuName'
    },
    {
      label: '菜单状态',
      type: 'select',
      prop: 'status',
      options: [
        {
          label: "正常",
          value: "1"
        },
        {
          label: "停用",
          value: "0"
        }
      ]
    },
    {
      label: '创建时间',
      type: 'date',
      prop: 'createTime',
      placeholder: '请选择创建时间'
    }
  ])
  return {
    formData
  }
}